*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    display:flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: #333;
}
.navigation{
    position: relative;
    width: 350px;
    height: 70px;
}
.navigation ul{
    display: flex;
}
.navigation ul .list{
    position: relative;
    list-style: none;
    width: 70px;
    height: 70px;
    z-index: 1;
}
.navigation ul li a{
   text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.navigation ul li a .icon{
    position: relative;
    line-height: 75px;
    transition: 0.5s;
    font-size: 30px;
}

.navigation ul li.active a .icon{
    font-size: 24px;
    transform: translateY(-6px);
    margin-bottom: 5px;
}
.navigation ul li a .text{
    position: absolute;
    font-size: 12px;
    color: #fff;
    bottom: 20px;
    font-weight: 700;
    transition: 0.25s;
    /* 文字隐身 */
    transform: scale(0);
}
.navigation ul li:hover a .text{
    transform: scale(1);
    transition: 0.5s
}
.indicator{
    position: absolute;
    left: 0;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    transition: 0.5s;
    /* background: #f00; */
}

.navigation ul li:nth-child(1).active ~ .indicator{
    background-color: rgb(29,155,240);
    box-shadow: 0 5px 10px rgb(29,155,240);
    transform: translateX(calc(70px * 0));
}
.navigation ul li:nth-child(2).active ~ .indicator{
    background-color: rgb(255,0,0);
    box-shadow: 0 5px 10px rgb(255,0,0);
    transform: translateX(calc(70px * 1));
}
.navigation ul li:nth-child(3).active ~ .indicator{
    background-color: #07c160;
    box-shadow: 0 5px 10px #07c160;
    transform: translateX(calc(70px * 2));
}
.navigation ul li:nth-child(4).active ~ .indicator{
    background-color: rgb(0,118,180);
    box-shadow: 0 5px 10px rgb(0,118,180);
    transform: translateX(calc(70px * 3));
}
.navigation ul li:nth-child(5).active ~ .indicator{
    background-color: rgb(153,153,153);
    box-shadow: 0 5px 10px rgb(153,153,153);
    transform: translateX(calc(70px * 4));
}